﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace cube
{
    public partial class DllViewTree : DigitalRune.Windows.Docking.DockableForm
    {
        public DllViewTree()
        {
            InitializeComponent();
            this.CloseButton = false;
        }
        public void SetModulePath(String modulePath)
        {
            dllViewTree2.ParseAssemblyDir(modulePath);
        }

        private void DllViewTree_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                e.Cancel = true;
                this.Hide();
            }
        }

        private void dllViewTree2_SelectionChanged(object sender, TreeViewEventArgs e)
        {
            textBox_helpText.Text = (e.Node as DLLToolsLibrary.DLLViewTree.AssemblyTreeNode).Documentation;
        }
    }
}
